Optimal. Leaf size=65 \[ \frac {\log (\sin (c+d x))}{a d}-\frac {\sin (c+d x)}{a d}-\frac {\sin ^2(c+d x)}{2 a d}+\frac {\sin ^3(c+d x)}{3 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2915, 12, 76}
\begin {gather*} \frac {\sin ^3(c+d x)}{3 a d}-\frac {\sin ^2(c+d x)}{2 a d}-\frac {\sin (c+d x)}{a d}+\frac {\log (\sin (c+d x))}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 76
Rule 2915
Rubi steps
\begin {align*} \int \frac {\cos ^4(c+d x) \cot (c+d x)}{a+a \sin (c+d x)} \, dx &=\frac {\text {Subst}\left (\int \frac {a (a-x)^2 (a+x)}{x} \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {\text {Subst}\left (\int \frac {(a-x)^2 (a+x)}{x} \, dx,x,a \sin (c+d x)\right )}{a^4 d}\\ &=\frac {\text {Subst}\left (\int \left (-a^2+\frac {a^3}{x}-a x+x^2\right ) \, dx,x,a \sin (c+d x)\right )}{a^4 d}\\ &=\frac {\log (\sin (c+d x))}{a d}-\frac {\sin (c+d x)}{a d}-\frac {\sin ^2(c+d x)}{2 a d}+\frac {\sin ^3(c+d x)}{3 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 49, normalized size = 0.75 \begin {gather*} \frac {-2+6 \log (\sin (c+d x))-6 \sin (c+d x)-3 \sin ^2(c+d x)+2 \sin ^3(c+d x)}{6 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 44, normalized size = 0.68
method | result | size |
derivativedivides | \(\frac {\frac {\left (\sin ^{3}\left (d x +c \right )\right )}{3}-\frac {\left (\sin ^{2}\left (d x +c \right )\right )}{2}-\sin \left (d x +c \right )+\ln \left (\sin \left (d x +c \right )\right )}{d a}\) | \(44\) |
default | \(\frac {\frac {\left (\sin ^{3}\left (d x +c \right )\right )}{3}-\frac {\left (\sin ^{2}\left (d x +c \right )\right )}{2}-\sin \left (d x +c \right )+\ln \left (\sin \left (d x +c \right )\right )}{d a}\) | \(44\) |
risch | \(-\frac {i x}{a}+\frac {{\mathrm e}^{2 i \left (d x +c \right )}}{8 a d}+\frac {{\mathrm e}^{-2 i \left (d x +c \right )}}{8 a d}-\frac {2 i c}{a d}+\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{a d}-\frac {3 \sin \left (d x +c \right )}{4 a d}-\frac {\sin \left (3 d x +3 c \right )}{12 a d}\) | \(103\) |
norman | \(\frac {\frac {2}{a d}+\frac {2 \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d}+\frac {4 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d}+\frac {4 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d}+\frac {8 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a d}+\frac {8 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a d}+\frac {14 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a d}+\frac {14 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 a d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d}-\frac {\ln \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d}\) | \(212\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 51, normalized size = 0.78 \begin {gather*} \frac {\frac {2 \, \sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )^{2} - 6 \, \sin \left (d x + c\right )}{a} + \frac {6 \, \log \left (\sin \left (d x + c\right )\right )}{a}}{6 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 48, normalized size = 0.74 \begin {gather*} \frac {3 \, \cos \left (d x + c\right )^{2} - 2 \, {\left (\cos \left (d x + c\right )^{2} + 2\right )} \sin \left (d x + c\right ) + 6 \, \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right )}{6 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 61, normalized size = 0.94 \begin {gather*} \frac {\frac {6 \, \log \left ({\left | \sin \left (d x + c\right ) \right |}\right )}{a} + \frac {2 \, a^{2} \sin \left (d x + c\right )^{3} - 3 \, a^{2} \sin \left (d x + c\right )^{2} - 6 \, a^{2} \sin \left (d x + c\right )}{a^{3}}}{6 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 9.05, size = 102, normalized size = 1.57 \begin {gather*} \frac {\ln \left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{a\,d}-\frac {\ln \left (\frac {1}{{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}\right )}{a\,d}-\frac {2\,\sin \left (c+d\,x\right )}{3\,a\,d}+\frac {{\cos \left (c+d\,x\right )}^2}{2\,a\,d}-\frac {{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{3\,a\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________